/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Trabalho3.RegrasPasswordChecker02;

import Trabalho3.RuleFactory;

/**
 *
 * @author geraldo
 */
public class RegraTamanho02 implements RuleFactory{
   private final int FATOR_BONUS_TAMANHO_SENHA = 4;
   String password;

    public RegraTamanho02(String password) {
        this.password = password;
    }
    
    
    @Override
    public int calcularRegra() {
        return password.length() * FATOR_BONUS_TAMANHO_SENHA;
    }
}
